4D Chart v13

CT SET ENTERABLE

Home

 
4D Chart v13
CT SET ENTERABLE

CT SET ENTERABLE 


 

CT SET ENTERABLE ( area ; mode ; buttonMode ) 
Parameter Type   Description
area  Longint in 4D Chart area
mode  Integer in Enterable or non-enterable 0 = Non-enterable 1 = Enterable
buttonMode  Integer in 0 = Display as button if area is of reduced size (default) 1 = Do not switch to a button

The CT SET ENTERABLE command controls access to the document in area.

  • If mode equals 1, area is enabled and functions normally.
  • If mode equals 0, area is disabled.

A disabled area cannot be modified by the user but can be modified by the language. When an area is disabled, the user can scroll through it and copy the selected objects to the Clipboard. The user cannot change the selection or use the 4D Chart menu bar or tool palettes.

The optional buttonMode parameter is used to control the display of the 4D Chart area when its initial dimensions are reduced (height less than 150 pixels and/or width less than 300 pixels):

  • If you pass 0 in buttonMode, the area is displayed as a button in the Form editor and in User mode. When the user clicks on this button, 4D Chart switches to full-page mode. This is the default operation.
  • If you pass 1 in buttonMode, the area may be displayed as a button in the Form editor (if its initial size is reduced) but not in User mode. In this case, it is possible that its contents may only be partially visible.

Example  

This example is a form method that makes area non-enterable.

 If(Form event=On Load)
    CT SET ENTERABLE(Area;0) `Make the area non-enterable
 End if

 
PROPERTIES 

Product: 4D Chart
Theme: CT Area Control
Number: 14524

 
INDEX

Alphabetical list of commands

 
HISTORY 

Modified: 4D Chart 6

 
SEE ALSO 

CT SET DISPLAY